package com.yunfangdata.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
//家庭情况
public class FamilyBackground extends  BaseDomain{

    private Long id;

    //称谓
    private String title;
    //姓名
    private String name;
    //工作单位
    private String workUnit;
    //职业
    private String organization;
    //出生日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    //数据传入使用日期类型
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    private Date dateOfBirth;
    //备注
    private String remark;
    //staffId
    private Long staffId;
}